package com.yunjijia.service.impl;

import com.yunjijia.mapper.UserroleMapper;
import com.yunjijia.pojo.Userrole;
import com.yunjijia.service.IUserroleService;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserroleServiceImpl implements IUserroleService {

    @Resource
    private UserroleMapper userroleMapper;

    /**
     * @param uid 用户id
     * @return 用户的对象集合
     */
    @Override
    public List<Userrole> getRolesByuid(String uid) {
        return userroleMapper.getRolesByuid(uid);
    }
}
